package com.yanq.liancar.adapter;
/*
 *  @创建者     Administrator
 *  @创建时间   2018/11/16  10:55
 *  @描述       ${TODO}
 */


import android.os.Build;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yanq.liancar.R;
import com.yanq.liancar.bean.CarPinpaiBean;
import com.yanq.liancar.bean.CheXiBean;

import java.util.List;
import java.util.Random;

public class CarCheXiAdapter extends BaseQuickAdapter<CheXiBean.DataBean, BaseViewHolder> {
    //private Integer[] colors = {R.drawable.dian_green, R.drawable.dian_red, R.drawable.dian_blue, R.drawable.dian_yellow, R.drawable.dian_zong};

    public CarCheXiAdapter(int layoutResId, @Nullable List<CheXiBean.DataBean> data) {
        super(layoutResId, data);
    }

    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    @Override
    protected void convert(BaseViewHolder helper, CheXiBean.DataBean item) {
        TextView textView2=helper.getView(R.id.brand_name);
        textView2.setText(item.getCar_series());
    }
}
